﻿using FRMS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.BUS
{
    public class DataDownLoad
    {
        public static List<HistoryInfo> list = new List<HistoryInfo>();
        public static Dictionary<string, string> device_dic = new Dictionary<string, string>();
        public static Dictionary<string, bool> register_dic = new Dictionary<string, bool>();
        public static Dictionary<string, bool> time_dic = new Dictionary<string, bool>();
        public static Dictionary<string, string> session_dic = new Dictionary<string, string>();

        public static void UpdateRegisterFlag(string deviceuuid, bool result)
        {
            if (register_dic.ContainsKey(deviceuuid))
            {
                register_dic.Remove(deviceuuid);
            }
            register_dic.Add(deviceuuid, result);
        }

    }
}
